package org.example.recruitserver.model.ajobModel;

import java.util.List;

/**
 * 同一回调JSON实体类
 * @param <E> 数据源
 */
public class JsonDataModel <E> {
    // 状态码
    String code;
    // 返回消息内容
    String msg;
    // 回调数据
    List<E> data;
    // 数据总数量
    Long dataSize;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<E> getData() {
        return data;
    }

    public void setData(List<E> data) {
        this.data = data;
    }

    public Long getDataSize() {
        return dataSize;
    }

    public void setDataSize(Long dataSize) {
        this.dataSize = dataSize;
    }

    @Override
    public String toString() {
        return "JsonDataModel{" +
                "code='" + code + '\'' +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                ", dataSize=" + dataSize +
                '}';
    }
}
